package com.nameli.admin.service;


import com.github.pagehelper.PageInfo;
import com.nameli.SIM.bean.entity.DepartmentInfo;
import com.nameli.SIM.bean.query.DepartQuery;
import com.nameli.SIM.bean.vo.DepartmentVO;
import com.nameli.SIM.bean.vo.MajorInfoVO;

import java.util.List;
import java.util.Map;

/**
 * @author NAME-L
 * @Description 学部 service接口
 * @className DepartMentInfoService
 * @date 2021-11-05 14:31:29
 */
public interface DepartMentService {

    /**
     * 根据学部编号查询内容，用于级联选择器
     * @return List<Map<String, Object>>
     */
    List<Map<String, Object>> queryByDepartMentNo();

    /**
     * 分页查询学部信息
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PageInfo<DepartmentVO> queryAllDepart(Integer pageIndex , Integer pageSize);

    /**
     * 根据条件分页查找学部信息
     * @param departQuery
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PageInfo<DepartmentVO> queryByCondition(DepartQuery departQuery , Integer pageIndex , Integer pageSize );

    /**
     * 查询部门信息返给前端选择框
     * @return
     */
    List<DepartmentInfo> queryDepart();
}
